//
//  FindHeaderView.m
//  FD
//
//  Created by Yasin on 2018/10/10.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//

#import "FindHeaderView.h"
#import <SDCycleScrollView.h>
@interface FindHeaderView()
/**轮播图*/
@property (nonatomic,  strong) SDCycleScrollView *cycleScrollView;


@end

@implementation FindHeaderView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setupView];
    }
    return self;
}

- (void)setupView {
    
    UIImage *img1 = [UIImage imageNamed:@"1.jpg"];
    UIImage *img2 = [UIImage imageNamed:@"2.jpg"];
    UIImage *img3 = [UIImage imageNamed:@"3.jpg"];
    UIImage *img4 = [UIImage imageNamed:@"4.jpg"];
    NSArray *imgArr = @[img1,img2,img3,img4];
    
    self.cycleScrollView = [SDCycleScrollView cycleScrollViewWithFrame:self.bounds imageNamesGroup:imgArr];
    
    
    [self addSubview:self.cycleScrollView];
}


- (void)setLunbotoArr:(NSArray *)lunbotoArr {
    _lunbotoArr = lunbotoArr;
    
    self.cycleScrollView.imageURLStringsGroup = lunbotoArr;
}


@end
